package h.ku.eval
{
	public class FatalExceptionHandler
	{
		
		private static var handlers:Array
			
		public static function addExceptionHandler(f:Function):void
		{
			if(handlers == null) handlers = [trace]
			handlers.push(f)
		}
		
		public static function handleException(s:String):void
		{
			for(var i:uint=0;i<handlers.length;i++)
			{
				handlers[i].call(null,s)
			}
		}
	}
}